package de.fsujena.chat_pi.client.userInterface;

import de.fsujena.chat_pi.ressources.message.TextMessage;

/**
 * The user interface (UI) defines methods for the exchange 
 * of user inputs and program outputs between the user and
 * the server.
 * 
 * @author Erik Hebestreit
 */
public interface UserInterface extends Runnable {
	
	/**
	 * Handler to post text messages on the server.
	 * 
	 * @param msg message to be posted
	 */
	void postTextMessage(TextMessage msg);
	
	void postInfo(String str);
	
	void postWarning(String str);
	
	void postError(String str);
	
	void postText(String str);
	
	void postArray(String str, String[] strArray);

	void postOwnTextMessage(String str);
}
